package com.wswy.wyjk.model


fun LocalConfig.toPracticeContext():PracticeContext{
    val type =  LicenseType.values().find { it.typeName == carType }?:LicenseType.CAR

    val code = areaCode?:0
    return PracticeContext(code.toString(),if (code == 0) "全国" else cityName?:"全国" ,type)
}